package cn.kz.hrm.feignclients;

import cn.kz.hrm.fallbackmethods.CourseClientsFeignFallbackFactory;
import cn.kz.hrm.util.AjaxResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;


@FeignClient(value = "course-server",fallbackFactory =CourseClientsFeignFallbackFactory.class )
public interface CourseClientsFeign {

    @RequestMapping(value = "/course/getCourseById/{id}",method = RequestMethod.GET)
    AjaxResult getCourseById(@PathVariable("id") Long id);

}
